/**.
 *
 */
package com.ww.companyCabinetSystem.common;

import java.io.Serializable;

/**.
 * com.ww.companyCabinetSystem.common
 * TODO
 * @author veloster
 * 下午3:12:53
 */
public class Response<T> implements Serializable {
	
	/**.
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 3741105495516212267L;
	/**
	 * 状态码
	 */
	private int code;
	/**
	 * 信息
	 */
	private String message;
	/**
	 * 返回的内容
	 */
	private T content;
	/**
	 * 返回时间
	 */
	private long time;
	
	/**
	 * .
	 *
	 */
	public Response() {
		super();
		this.time = System.currentTimeMillis();
	}
	
	/**.
	 * .
	 * @param code
	 * @param message
	 * @param content
	 */
	public Response(int code, String message, T content) {
		super();
		this.code = code;
		this.message = message;
		this.content = content;
		this.time = System.currentTimeMillis();
	}
	


	/**
	 * .
	 * @return
	 */
	public int getCode() {
		return code;
	}
	/**
	 * .
	 * @param code
	 */
	public void setCode(int code) {
		this.code = code;
	}
	/**
	 * .
	 * @return
	 */
	public String getMessage() {
		return message;
	}
	/**
	 * .
	 * @param message
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	/**
	 * .
	 * @return
	 */
	public T getContent() {
		return content;
	}
	/**
	 * .
	 * @param content
	 */
	public void setContent(T content) {
		this.content = content;
	}
	/**
	 * .
	 * @return
	 */
	public long getTime() {
		return time;
	}
	/**
	 * .
	 * @param time
	 */
	public void setTime(long time) {
		this.time = time;
	}
	

}
